package com.cuitrip;

import com.cuitrip.config.Config;
import org.dom4j.DocumentException;

import java.io.File;
import java.io.IOException;

/**
 * Created by MiJack on 2015/11/21.
 */
public class Main {
    public static void main(String[] args) throws DocumentException, IOException {
        //读取config文件
        String configFileName = "language.xml";
        if (args.length > 0) {
            configFileName = args[0];
        }
        Config config = Config.getInstance(new File(configFileName));
        LanguageTool tool = new LanguageTool();
        tool.setConfig(config);
        tool.startWork();
    }
}
